package com.android.pagemarket.ui.adapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;

import com.android.pagemarket.R;
import com.android.pagemarket.business.model.PaperType;
import com.android.pagemarket.ui.widget.PaperTypeItemView;

/*********************************************************
 * @author : zhaohua
 * @version : 2012-11-8
 * @see : 报价名称适配器
 * @Copyright : copyrights reserved by personal 2007-2011
 **********************************************************/
public class QuotTypeListAdapter extends ArrayListAdapter<PaperType>
{

    public QuotTypeListAdapter(Context context)
    {
        super(context);
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent)
    {
        if(convertView == null)
        {
            convertView = inflater.inflate(R.layout.listitem_papertype, null);
        }
        PaperTypeItemView view = (PaperTypeItemView)convertView;
        PaperType data = (PaperType)getItem(position);
        view.bindData(data);
        return view;
    }
}
